package com.zf.bm.common.core.sys.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zf.bm.common.core.base.entity.BaseEntity;
import com.zf.bm.common.core.mybatis.annotation.FieldIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户-证书表
 * </p>
 *
 * @author guojing
 * @since 2023-08-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_user_cert")
@FieldIgnore({"remarks", "createBy", "updateBy", "createDate", "updateDate", "id","delFlag"})
public class SysUserCert extends BaseEntity<SysUserCert> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户编号
     */
    @TableId(value = "user_id")
    private Integer userId;

    /**
     * 登录名称
     */
    private String loginName;

    /**
     * 证书cert
     */
    private String cert;


    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

}
